package com.fdq.demo.tool;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: 83778
 * @date: 2023-11-15 17:19
 * @desc:
 */
public class TimeTool {

    public static String dateToString(Date date){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(date);
    }
}
